package com.qdlc.p2p.biz.service.activity;

/**
 * 活动方案枚举
 * @author linya
 */
public enum ActivityProgrammeEnum {

	RED_ENVELOPE(1, "红包"),
	EXPERIENCE(2, "体验券"),
	UPRATE(3, "加息券"),
	LOTTERY(4, "抽奖"),
	MOVIE_TICKET(5, "电影票"),
	CASH_AWARD(6, "返现"),
	REDEEM_CODE(7, "兑换券"),
	Commodity(8, "商品"),
	SCORE(9,"积分"),
	USER_CARD(99, "送卡活动");
	
	int type;
	
	String name;
	
	ActivityProgrammeEnum(int type, String name){
		this.type = type;
		this.name = name;
	}
	
	public static ActivityProgrammeEnum getProgrammeEnum(int type){
		for(ActivityProgrammeEnum en: ActivityProgrammeEnum.values()){
			if(en.type == type){
				return en;
			}
		}
		return null;
	}

	public int getType() {
		return type;
	}

	public String getName() {
		return name;
	}
	
}
